﻿Imports System.Windows.Forms

Public Class ConfirmFileReplace


    Private mResult As DialogStatus
    Public Property Result() As DialogStatus
        Get
            Return mResult
        End Get
        Set(ByVal value As DialogStatus)
            mResult = value
        End Set
    End Property

  

    Private Sub OK_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
        Me.DialogResult = System.Windows.Forms.DialogResult.OK
        Me.Close()
    End Sub

    Private Sub Cancel_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
        Me.DialogResult = System.Windows.Forms.DialogResult.Cancel
        Me.Close()
    End Sub

    Private Sub cmdYes_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdYes.Click
        mResult = DialogStatus.Ok
    End Sub

    Private Sub cmdNo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdNo.Click
        mResult = DialogStatus.Skip
    End Sub

    Private Sub cmdYesToAll_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdYesToAll.Click
        Support.OverwriteALL = True
        mResult = DialogStatus.Ok
    End Sub

    Private Sub cmdCancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdCancel.Click
        mResult = DialogStatus.Abort
    End Sub
End Class
